/**
 * @Author :sunwei
 * @Description:
 * @Date create in 19:00  2021/5/23
 * @Modified by:
 */
public class MainTest {

    public static void main(String[] args) throws InterruptedException {
//        ThreadFlagClose close = new ThreadFlagClose();
//        close.start();
//        Thread.sleep(1000);
//        close.stop();

        ThreadCloseForce force = new ThreadCloseForce();
        force.start(()->{
            while(true){
                try {
                    System.out.println("do some thing");
                    Thread.sleep(5000);
                } catch (InterruptedException e) {
                    e.printStackTrace();
                }
            }
        }, 10000);
    }
}
